import yaml
import os


# 获取所有用例


class YamlUtil:

    def __init__(self, yaml_file):
        self.yaml_file = yaml_file

    def read_yaml(self):
        with open(self.yaml_file, encoding="utf-8") as f:
            value = yaml.load(f, Loader=yaml.FullLoader)
            return value
# def read_yaml(self,yaml_file):
#     with open(yaml_file, encoding="utf-8") as f:
#         value = yaml.load(f, Loader=yaml.FullLoader)
#         return value